﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MobileServer.Bll.Bis
{
    public class ViewModel<T>
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public T Model { get; set; }

        public ViewModel() { }

        public ViewModel(int code, string message, T model)
        {
            this.Model = model;
            this.Message = message;
            this.Code = code;
        }

        public ViewModel(int code, string message)
        {
            this.Model = default(T);
            this.Message = message;
            this.Code = code;
        }

        public ViewModel(int code)
        {
            this.Code = code;
        }
    }
}
